package com.bill.common.user.action;

import org.springframework.beans.factory.annotation.Autowired;

import com.bill.common.user.service.IBonusService;
import com.opensymphony.xwork2.ActionSupport;

@SuppressWarnings("serial")
public class BonusActionn  extends ActionSupport{
	
	@Autowired
	private IBonusService bonusService;
	private String resultStr;
	private int page = 1;
    private int rows = 10;
	public String getResultStr() {
		return resultStr;
	}

	public void setResultStr(String resultStr) {
		this.resultStr = resultStr;
	}

	public int getPage() {
		return page;
	}

	public void setPage(int page) {
		this.page = page;
	}

	public int getRows() {
		return rows;
	}

	public void setRows(int rows) {
		this.rows = rows;
	}

	//静态分红
	public String everyDayHong(){
		try {
			resultStr = bonusService.everyDayHong(page,rows);	
		} catch (Exception e) {
			// TODO: handle exception
			e.printStackTrace();
		}
		
		return "resultStr";
	}
	
	//静态分红
	public String everyDayHong1(){
		resultStr = bonusService.everyDayHong1();
		return "resultStr";
	}
}
